package com.woniuxy.controller;

import com.woniuxy.client.BossClientOrder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/boss")
public class BossController {
    @Autowired
    private BossClientOrder bossClientOrder;
    @GetMapping("/showMonthRecord")
    public Integer showMonthRecord(String month){
        System.out.println("gogogo");
        return bossClientOrder.showMonthRecord(month);
    }
    @GetMapping("/showDayRecord")
    public Integer showDayRecord(){
        System.out.println("daydayday");
        return bossClientOrder.showDayRecord();
    }
}
